package com.xq.mapper.impl;

import com.xq.mapper.DeptMapper;
import com.xq.pojo.Dept;
import com.xq.utils.MyBatisUtils;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

/**
 * @author xq
 * @version 1.0
 * @date 2021/4/3 18:49
 * @description 部门数据接口实现层
 */
public class DeptMapperImpl implements DeptMapper {
    @Override
    public List<Dept> getAllByInJoinOnDeptIdCollection() {
        SqlSession session = MyBatisUtils.openSession();
        List<Dept> list = session.selectList("com.xq.mapper.DeptMapper.getAllByInJoinOnDeptIdCollection");
        session.close();
        return list;
    }
}
